android java get current date

49

how to get system date in android -

String date = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault()).format(new Date());

Comments

Submit
0 Comments